<include file="public@header"/>
<style type="text/css">
    .cardBox {
        width: 200px;
        box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2), 0 6px 20px 0 rgba(0, 0, 0, 0.19);
        text-align: center;
        float: left;
        margin-right: 10px;
        padding: 5px;
        padding-top: 15px;
    }

    .headerBox {
        color: #fff;
        padding: 10px;
        font-size: 15px;
        height: 90px;
    }

    .bodyBox {
        padding: 10px;
    }

    .bodyBox p {
        margin-left: 5px;
    }
</style>
</head>
<body>
<div class="wrap">
    <ul class="nav nav-tabs">
        <li class="active"><a>公司内部开销</a></li>
        <li><a href="{:url('add')}">新增</a></li>
    </ul>

    <div class="cardBox" style="margin-bottom: 60px">
        <div class="headerBox" style="background-color: #006fc4;">
            <p>
                《总计金额》: <span style="color: #ffffff">{$all}</span>￥
            </p>
        </div>
    </div>

    <div class="cardBox" style="margin-bottom: 60px">
        <div class="headerBox" style="background-color: #006fc4;">
            <p>
                《备用金支付汇总》: <span style="color: #ffffff">{$by}</span>￥
            </p>
        </div>
    </div>

    <div class="cardBox" style="margin-bottom: 60px">
        <div class="headerBox" style="background-color: #006fc4;">
            <p>
                《签字支付汇总》 : <span style="color: #ffffff">{$qz}</span>￥
            </p>
        </div>
    </div>

    <div class="cardBox" style="margin-bottom: 60px">
        <div class="headerBox" style="background-color: #006fc4;">
            <p>
                《公司支付汇总》 : <span style="color: #ffffff">{$gs}</span>￥
            </p>
        </div>
    </div>


    <form method="post" class="js-ajax-form margin-top-20">
        <table class="table table-hover table-bordered">
            <thead>
            <tr>
                <th>申请人</th>
                <th>经办人</th>
                <th>单位</th>
                <th>数量</th>
                <th>单价</th>
                <th>总价</th>
                <th>支付方式</th>
                <th>走账</th>
                <th>事件简介</th>
                <th>时间</th>
                <th>{:lang('ACTIONS')}</th>
            </tr>
            </thead>
            <tbody>
            <tr>
                <volist name="res" id="v">
            <tr>
                <td>{$v.userName}</td>
                <td>{$v.lname}</td>
                <td>{$v.unit}</td>
                <td>{$v.nums}</td>
                <td>{$v.price}</td>
                <td>{$v.count}</td>
                <td>
                    <?php if($v['pay'] ==1){
                        echo '微信';
                        }elseif($v['pay'] == 2){
                        echo '支付宝';
                        }elseif($v['pay'] == 3){
                        echo '银行卡';
                        }elseif($v['pay'] == 4){
                        echo '淘宝';
                        }elseif($v['pay'] == 5){
                        echo '现金';
                        }elseif($v['pay'] == 6){
                        echo '签字';
                        }
                    ?>
                </td>
                <td>
                    <?php if($v['type'] ==1){
                        echo '备用金';
                        }elseif($v['type'] == 2){
                        echo '签字';
                        }elseif($v['type'] == 3){
                        echo '公司付';
                        }
                    ?>
                </td>
                <td>{$v.desc}</td>
                <td>{$v.date}</td>
                <td>
                    <a class="btn btn-xs btn-primary js-ajax-submit"
                       href="{:url('see',array('id'=>$v['id']))}">查看详情</a>
                    <a class="btn btn-xs btn-danger js-ajax-delete" class=""
                       href="{:url('del',array('id'=>$v['id']))}">{:lang('DELETE')}</a>
                </td>
            </tr>
            </volist>
            </tr>
            </tbody>
        </table>

    </form>
</div>
<script src="__STATIC__/js/admin.js"></script>
</body>
</html>